package com.rivulet.fileserver.tools;

import java.util.UUID;

public class Tool {
    public final static String getUUID(){
        int hashCodeV = UUID.randomUUID().toString().hashCode();
        if(hashCodeV < 0) {//有可能是负数
            hashCodeV = - hashCodeV;
        }
        String uuid=String.format("%016d", hashCodeV);
        return uuid;
    }
}
